package cn.com.nes.site.service.crm.opportunity;

import cn.com.nes.mybatis.agent.crm.entity.OpportunityStaff;
import cn.com.nes.site.service.crm.opportunity.bo.OpportunityStaffBO;
import cn.com.nes.site.service.crm.opportunity.dto.OpportunityStaffDTO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface OpportunityStaffService extends IService<OpportunityStaff> {

    List<OpportunityStaffDTO> getOpportunityStaffDtoList(OpportunityStaffBO opportunityStaffBo);


    /**
     * 保存商机联系人
     * @param opportunityStaffBO
     * @return
     */
    OpportunityStaff saveStaff(OpportunityStaffBO opportunityStaffBO) throws Exception;


    /**
     * 联系人分页列表
     * @param opportunityStaffBO
     * @return
     */
    Page<OpportunityStaffDTO> getStaffPage(OpportunityStaffBO opportunityStaffBO);


    /**
     * 删除商机联系人
     * @param opportunityStaffBO
     * @throws Exception
     */
    void deleteStaff(OpportunityStaffBO opportunityStaffBO) throws Exception;

}
